﻿using GalaSoft.MvvmLight;

namespace TroubleshootingofBeanBagAssistant.ViewModel
{
	public class ViewModelBase<T> : ViewModelBase
	{
		/// <summary>
		///     数据列表
		/// </summary>
		private IList<T> _dataList;


		private IList<ListViewDataModel> _dataList1;

		/// <summary>
		///     数据列表
		/// </summary>
		public IList<T> DataList
		{
			get => _dataList;
#if NET40
        set => Set(nameof(DataList), ref _dataList, value);
#else
			set => Set(ref _dataList, value);
#endif
		}

		public IList<ListViewDataModel> DataList1
		{
			get => _dataList1;
#if NET40
        set => Set(nameof(DataList), ref _dataList, value);
#else
			set => Set(ref _dataList1, value);
#endif
		}
	}
}
